<script setup>

import {ElDropdown, ElDropdownItem, ElDropdownMenu, ElIcon} from "element-plus";
import { Setting } from '@element-plus/icons-vue'
</script>

<template>
  <div>
    <el-dropdown>
          <span class="flex items-center cursor-pointer">
           <el-icon><setting /></el-icon>
          </span>
      <template #dropdown>
        <el-dropdown-menu>
          <el-dropdown-item>查看</el-dropdown-item>
          <el-dropdown-item>新增</el-dropdown-item>
          <el-dropdown-item>删除</el-dropdown-item>
        </el-dropdown-menu>
      </template>
    </el-dropdown>
    <span>王小虎</span>
  </div>

</template>

<style scoped>

</style>